Skip to content

feat: 프로필사진 지정 기능 추가#141

Merged
Neibce merged 2 commits intomainfrom
be/feat/profile-image
Aug 18, 2025
Merged

feat: 프로필사진 지정 기능 추가#141
Neibce merged 2 commits intomainfrom
be/feat/profile-image

Conversation

@Neibce
Copy link
Owner

@Neibce Neibce commented Aug 18, 2025

Summary by CodeRabbit

  • 신기능
    • 회원가입 시 프로필 이미지 선택이 필수로 변경되었습니다. 선택하지 않으면 안내 메시지가 표시됩니다.
    • 내 정보/프로필 화면에서 선택한 프로필 이미지가 함께 표시되어 식별이 더 쉬워졌습니다.
    • 기존 사용자도 계정 설정에서 프로필 이미지를 선택·변경할 수 있으며, 미설정 시 설정을 요청받을 수 있습니다.

@coderabbitai
Copy link

coderabbitai bot commented Aug 18, 2025

Walkthrough

회원 등록 요청(RegisterRequest), 사용자 엔티티(User)와 사용자 정보 DTO(UserInfo)에 정수형 프로필 이미지 식별자(profileImageId, non-null)가 추가되었고, User → UserInfo 매핑 생성자 호출이 해당 값을 포함하도록 변경되었습니다.

Changes

Cohort / File(s) Summary
프로필 이미지 ID 필드 추가
backend/ongi/src/main/java/ongi/auth/dto/RegisterRequest.java, backend/ongi/src/main/java/ongi/user/dto/UserInfo.java, backend/ongi/src/main/java/ongi/user/entity/User.java
- RegisterRequest: @NotNull Integer profileImageId 컴포넌트 추가
- User 엔티티: @Column(nullable = false) Integer profileImageId 필드 추가
- UserInfo 레코드: Integer profileImageId 컴포넌트 추가 및 UserInfo(User user)에서 user.getProfileImageId() 전달
테스트 업데이트
backend/ongi/src/test/java/ongi/FamilyControllerUnitTest.java
- UserInfo 테스트 인스턴스 생성 호출이 새 생성자 시그니처(7-args, profileImageId 포함)로 업데이트됨

Sequence Diagram(s)

sequenceDiagram
  actor Client
  participant AuthAPI as Auth API
  participant UserRepo as User Repository
  participant DB

  Client->>AuthAPI: POST /register { email, name, isParent, profileImageId, ... }
  AuthAPI->>UserRepo: save(User{..., profileImageId})
  UserRepo->>DB: INSERT User(..., profileImageId)
  DB-->>UserRepo: persisted User
  UserRepo-->>AuthAPI: User
  AuthAPI-->>Client: 201 Created
Loading
sequenceDiagram
  actor Client
  participant UserAPI as User Info API
  participant UserRepo as User Repository
  participant DB

  Client->>UserAPI: GET /users/{id}
  UserAPI->>UserRepo: findById(id)
  UserRepo->>DB: SELECT *
  DB-->>UserRepo: User(..., profileImageId)
  UserRepo-->>UserAPI: User
  UserAPI-->>Client: UserInfo{..., profileImageId, ...}
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

새 숫자 하나 달린 내 프로필, 🥕
토끼가 홱 보고 웃네, 반짝 반짝!
가입길에도, 조회길에도 늘 함께,
DTO와 엔티티 손잡고 춤을 추네.
토깽이 축하의 깡총, 사진 준비 완료! 📸🐇

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free

💡 Knowledge Base configuration:

  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f1ab3a9 and 5d9b9e4.

📒 Files selected for processing (1)
  • backend/ongi/src/test/java/ongi/FamilyControllerUnitTest.java (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Neibce Neibce merged commit c526f00 into main Aug 18, 2025
4 checks passed
Neibce added a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
* feat: 프로필사진 지정 기능 추가

* fix: 테스트 수정
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant